<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>旅游小程序 UI 设计图</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.4.2/css/all.min.css" rel="stylesheet">
    <style>
        :root {
            --primary-color: #3B82F6;
            --secondary-color: #1E40AF;
            --background-color: #F3F4F6;
            --text-color: #374151;
            --border-radius: 40px;
            --transition: all 0.3s ease;
        }
        body {
            background-color: var(--background-color);
            min-height: 100vh;
            padding: 2rem;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
        }
        .header {
            max-width: 1600px;
            margin: 0 auto 2rem;
            padding: 1rem;
            background: white;
            border-radius: 1rem;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }
        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 2rem;
        }
        .search-box {
            flex: 1;
            max-width: 600px;
            position: relative;
        }
        .search-box input {
            width: 100%;
            padding: 0.75rem 1rem 0.75rem 2.5rem;
            border: 1px solid #E5E7EB;
            border-radius: 0.5rem;
            outline: none;
            transition: var(--transition);
        }
        .search-box input:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }
        .search-box i {
            position: absolute;
            left: 0.75rem;
            top: 50%;
            transform: translateY(-50%);
            color: #9CA3AF;
        }
        .view-controls {
            display: flex;
            gap: 1rem;
            align-items: center;
        }
        .view-controls button {
            padding: 0.5rem;
            border: none;
            background: none;
            color: var(--text-color);
            cursor: pointer;
            transition: var(--transition);
        }
        .view-controls button:hover {
            color: var(--primary-color);
        }
        .design-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(375px, 1fr));
            gap: 2rem;
            max-width: 1600px;
            margin: 0 auto;
        }
        .page-frame {
            width: 375px;
            height: 812px;
            border: none;
            border-radius: var(--border-radius);
            background: white;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            transition: var(--transition);
        }
        .page-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;
            padding: 1rem;
            border-radius: 1rem;
            transition: var(--transition);
        }
        .page-container:hover .page-frame {
            transform: translateY(-5px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
        }
        .page-title {
            font-size: 1rem;
            color: var(--text-color);
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .page-title i {
            font-size: 0.875rem;
            color: var(--primary-color);
        }
        .category-filter {
            display: flex;
            gap: 1rem;
            margin-bottom: 1rem;
            flex-wrap: wrap;
        }
        .category-btn {
            padding: 0.5rem 1rem;
            border: 1px solid #E5E7EB;
            border-radius: 0.5rem;
            background: white;
            color: var(--text-color);
            cursor: pointer;
            transition: var(--transition);
        }
        .category-btn:hover, .category-btn.active {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }
    </style>
</head>
<body>
    <div class="design-container">
        <div class="page-container">
            <h2 class="page-title"><i class="fas fa-sign-in-alt"></i>登录页面</h2>
            <iframe src="login.html" class="page-frame" scrolling="no"></iframe>
        </div>
        <div class="page-container">
            <h2 class="page-title"><i class="fas fa-home"></i>首页</h2>
            <iframe src="home.html" class="page-frame" scrolling="no"></iframe>
        </div>
        <!-- <div class="page-container">
            <h2 class="page-title"><i class="fas fa-search"></i>搜索页面</h2>
            <iframe src="search.html" class="page-frame" scrolling="no"></iframe>
        </div>
        <div class="page-container">
            <h2 class="page-title"><i class="fas fa-list"></i>搜索结果</h2>
            <iframe src="search_results.html" class="page-frame" scrolling="no"></iframe>
        </div> -->
        <div class="page-container">
            <h2 class="page-title"><i class="fas fa-th-large"></i>分类页面</h2>
            <iframe src="category.html" class="page-frame" scrolling="no"></iframe>
        </div>
        <div class="page-container">
            <h2 class="page-title"><i class="fas fa-route"></i>路线详情</h2>
            <iframe src="route_detail.html" class="page-frame" scrolling="no"></iframe>
        </div>
        <div class="page-container">
            <h2 class="page-title"><i class="fas fa-clipboard-check"></i>订单确认页面</h2>
            <iframe src="order_confirm.html" class="page-frame" scrolling="no"></iframe>
        </div>
        <div class="page-container">
            <h2 class="page-title"><i class="fas fa-shopping-cart"></i>订单列表</h2>
            <iframe src="order_list.html" class="page-frame" scrolling="no"></iframe>
        </div>
        <div class="page-container">
            <h2 class="page-title"><i class="fas fa-user"></i>个人中心</h2>
            <iframe src="profile.html" class="page-frame" scrolling="no"></iframe>
        </div>
        <!-- <div class="page-container">
            <h2 class="page-title"><i class="fas fa-heart"></i>我的收藏</h2>
            <iframe src="favorites.html" class="page-frame" scrolling="no"></iframe>
        </div> -->
        <div class="page-container">
            <h2 class="page-title"><i class="fas fa-calendar-alt"></i>旅行日历</h2>
            <iframe src="travel_calendar.html" class="page-frame" scrolling="no"></iframe>
        </div>
        <!-- <div class="page-container">
            <h2 class="page-title"><i class="fas fa-edit"></i>游记编辑</h2>
            <iframe src="travel_note_edit.html" class="page-frame" scrolling="no"></iframe>
        </div> -->
        <div class="page-container">
            <h2 class="page-title"><i class="fas fa-star"></i>路线评价</h2>
            <iframe src="route_review.html" class="page-frame" scrolling="no"></iframe>
        </div>
        <div class="page-container">
            <h2 class="page-title"><i class="fas fa-headset"></i>在线客服</h2>
            <iframe src="customer_service.html" class="page-frame" scrolling="no"></iframe>
        </div>
        <div class="page-container">
            <h2 class="page-title"><i class="fas fa-users"></i>分销员中心</h2>
            <iframe src="distributor_center.html" class="page-frame" scrolling="no"></iframe>
        </div>
        <div class="page-container">
            <h2 class="page-title"><i class="fas fa-money-bill-wave"></i>分销佣金</h2>
            <iframe src="commission_tracking.html" class="page-frame" scrolling="no"></iframe>
        </div>
        <div class="page-container">
            <h2 class="page-title"><i class="fas fa-handshake"></i>成交员中心</h2>
            <iframe src="salesperson_center.html" class="page-frame" scrolling="no"></iframe>
        </div>
        <div class="page-container">
            <h2 class="page-title"><i class="fas fa-chart-line"></i>成交员业绩</h2>
            <iframe src="salesperson_performance.html" class="page-frame" scrolling="no"></iframe>
        </div>
        <div class="page-container">
            <h2 class="page-title"><i class="fas fa-users-cog"></i>客户管理</h2>
            <iframe src="customer_management.html" class="page-frame" scrolling="no"></iframe>
        </div>
        <div class="page-container">
            <h2 class="page-title"><i class="fas fa-share-alt"></i>分销员推广</h2>
            <iframe src="distributor_promotion.html" class="page-frame" scrolling="no"></iframe>
        </div>
        <div class="page-container">
            <h2 class="page-title"><i class="fas fa-wallet"></i>佣金提现</h2>
            <iframe src="commission_withdraw.html" class="page-frame" scrolling="no"></iframe>
        </div>
        
        <div class="page-container">
            <h2 class="page-title"><i class="fas fa-users-cog"></i>推广员管理(后台)</h2>
            <iframe src="admin/promoter_list.html" class="page-frame" scrolling="no"></iframe>
        </div>
        
        <div class="page-container">
            <h2 class="page-title"><i class="fas fa-user-tie"></i>成交员管理(后台)</h2>
            <iframe src="admin/salesperson_list.html" class="page-frame" scrolling="no"></iframe>
        </div>
        
        <div class="page-container">
            <h2 class="page-title"><i class="fas fa-network-wired"></i>分销员管理(后台)</h2>
            <iframe src="admin/distributor_list.html" class="page-frame" scrolling="no"></iframe>
        </div>
        
       
       
    </div>
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 搜索功能
            const searchInput = document.querySelector('.search-input');
            const pageContainers = document.querySelectorAll('.page-container');
            
            searchInput.addEventListener('input', function(e) {
                const searchTerm = e.target.value.toLowerCase();
                pageContainers.forEach(container => {
                    const title = container.querySelector('.page-title').textContent.toLowerCase();
                    container.style.display = title.includes(searchTerm) ? 'flex' : 'none';
                });
            });

            // 分类筛选
            const categoryButtons = document.querySelectorAll('.category-btn');
            categoryButtons.forEach(button => {
                button.addEventListener('click', function() {
                    // 移除其他按钮的active类
                    categoryButtons.forEach(btn => btn.classList.remove('active'));
                    // 添加当前按钮的active类
                    this.classList.add('active');
                    
                    const category = this.textContent.toLowerCase();
                    if (category === '全部') {
                        pageContainers.forEach(container => {
                            container.style.display = 'flex';
                        });
                        return;
                    }

                    pageContainers.forEach(container => {
                        const title = container.querySelector('.page-title').textContent.toLowerCase();
                        container.style.display = title.includes(category) ? 'flex' : 'none';
                    });
                });
            });

            // 视图切换
            const gridViewBtn = document.querySelector('.view-controls button:nth-child(1)');
            const listViewBtn = document.querySelector('.view-controls button:nth-child(2)');
            const container = document.querySelector('.design-container');

            gridViewBtn.addEventListener('click', function() {
                container.style.gridTemplateColumns = 'repeat(auto-fit, minmax(375px, 1fr))';
            });

            listViewBtn.addEventListener('click', function() {
                container.style.gridTemplateColumns = '1fr';
            });
        });
    </script>
</body>
</html>